<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
<title>求和</title>
</head>
<style type="text/css">
h4 {
	text-align: center;
}
</style>
<body>
      <%
		int m = Integer.parseInt(request.getParameter("m")), n = Integer
				.parseInt(request.getParameter("n")), sum=0;
	%>
	<%
		for(int i = m; i<=n; i++){
		sum+=i;
		}
	%>
	<h4>m和n之间所有整数的和<%=sum %></h4>
</body>
</html>
